#!/usr/bin/env python
#coding=utf-8
from resource_management import *
import os

# config object that holds the configurations declared in the config xml file
config = Script.get_config()
tmp_dir = Script.get_tmp_dir()
stack_root = Script.get_stack_root()

# store the log file for the service commands outputs
log_file = config['configurations']['ddse-config']['log.file']
war_url = config['configurations']['ddse-config']['war.url']
servlet_server_tar_url= config['configurations']['ddse-config']['servlet.server.tar.url']
servlet_server_dir = config['configurations']['ddse-config']['servlet.server.dir']
work_dir = config['configurations']['ddse-config']['work.dir']
servlet_server_dir_name= config['configurations']['ddse-config']['servlet.server.dir.name']
servlet_server_port = config['configurations']['ddse-config']['servlet.server.port']

#print "aimport config:",log_file,war_url,servlet_server_tar_url
service_packagedir = os.path.realpath(__file__).split('/scripts')[0]



# static params
#app_url="http://192.168.1.38/ambari/helloworld.war"
#container_url="http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.13/bin/apache-tomcat-8.5.13.tar.gz"
#container_dir="/var/lib/container"
